<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/include/header.jsp"%>
<script type="text/javascript" src="msi/project/project.js"></script>

<div class="easyui-layout" fit="true">
	<div region="north" border="false">
		<div class="subtitle">项目管理</div>
	</div>
	<div region="center" border="false">
		<table id="projectList" toolbar="#toolbar"></table>
	</div>
	<div id="toolbar" class="toolbar">
		<table cellpadding="0" cellspacing="0" style="width:100%">
			<tr>
				<td>
					<a href="#" class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="openProject();">创建项目</a>
					<a href="#" class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="openPrcess();">项目跟踪</a>
					<!--  
					<a href="#" class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="">执行人员</a>
					-->
					<a href="#" class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="openIndex();">考核指标</a>
					<a href="#" class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="openTemplate();">问卷模板</a>
					<a href="#" class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="openQuestionnaireManager();">问卷管理</a>
				</td>
				<td style="text-align:right">
					<input id="q" class="easyui-searchbox" prompt="按项目编号查询" searcher="normalProjectQuery" style="width:200px"></input>
					<a href="#" class="easyui-linkbutton" plain="true" onclick="">高级查询</a>
				</td>
			</tr>
		</table>
	</div>
</div>
<div id="dialog" class="easyui-dialog" style="width:480px;height:260px;position:relative" closed="true" modal="true"></div>
<div id="indexFormDialog" class="easyui-dialog" style="width:480px;height:260px;position:relative" closed="true" modal="true"></div>
<div id="dialogProcess" class="easyui-dialog" style="width:480px;height:260px;position:relative" closed="true" modal="true"></div>
<div id="processDialog" class="easyui-dialog" style="width:720px;height:450px;position:relative" closed="true" modal="true"></div>
<div id="indexDialog" class="easyui-dialog" style="width:720px;height:450px;position:relative" closed="true" modal="true"></div>
<div id="questionnaireDialog" class="easyui-dialog" style="width:720px;height:450px;position:relative" closed="true" modal="true"></div>
<div id="templateDialog" class="easyui-dialog" style="width:960px;height:600px;position:relative" closed="true" modal="true"></div>
<div id="selQuestionDialog" class="easyui-dialog" style="width:720px;height:500px;position:relative" closed="true" modal="true"></div>
<div id="questionnaireManagerDialog" class="easyui-dialog" style="width:720px;height:450px;position:relative" closed="true" modal="true"></div>
<div id="naireDialog" class="easyui-dialog" style="width:960px;height:600px;position:relative" closed="true" modal="true"></div>
<%@ include file="/include/footer.jsp"%>
<script type="text/javascript">
$(function() {
	$('#projectList').datagrid({
		width : 700,
		url:"searchProjectList.do",
		idField:"projectId",
		fit:true,
		singleSelect:true,
		pagination:true,
		rownumbers:true,
		columns:[
				[{title:'项目编号',field:'projectCode',width:200,align:"left"},
	             {title:'项目名称',field:'projectName',width:80,align:"left"},
				 {field:'custName',title:'客户名称',width:120,align:"left"},
				{field:'startDate',title:'开始日期',width:120,align:"left"},
				{field:'endDate',title:'结束日期',width:80,align:"right"},
				{field:'cycle',title:'项目周期',width:180,align:"left"},
				{field:'projectDesc',title:'项目描述',width:80,align:"center"},
				{field:'projectState',title:'项目状态',width:80,align:"center"}]],
		onDblClickRow:function(rowIndex, rowData) {
			openProject(rowData.projectId);
		}
	});
});
</script>